package com.x.erp.rpc;

import java.util.List;

import com.x.erp.model.CarLog;
import com.x.erp.model.Detection;
import com.x.erp.model.DetectionImage;
import com.x.framework.rpc.BaseRpcService;

/**
 * 检测单信息
 */
public interface DetectionRpcService extends BaseRpcService {

	/**
	 * 新增检测单信息
	 * @param detection
	 * @return
	 */
	public Detection insertDetection(Detection detection);

	/**
	 * 修改检测单信息基本修改
	 * @param detection
	 * @return
	 */
	public int updateDetection(Detection detection);

	/**
	 * 修改检测单信息（包括图片、车辆状态）
	 * @param detection
	 * @return
	 */
	public int updateDetectionInfo(Detection detection, CarLog carLog);

	/**
	 * 查询检测单信息列表
	 * @param detection
	 * @return
	 */
	public List<Detection> selectDetectionList(Detection detection);

	/**
	 * 查询检测单信息数量
	 * @param detection
	 * @return
	 */
	public int selectDetectionNum(Detection detection);

	/**
	 * 查询检测单信息
	 * @param detection
	 * @return
	 */
	public Detection selectDetection(Detection detection);

	/**
	 * 新增检测单图片信息
	 * @param detectionImage
	 * @return
	 */
	public DetectionImage insertDetectionImage(DetectionImage detectionImage);

	/**
	 * 修改检测单图片信息
	 * @param detectionImage
	 * @return
	 */
	public int updateDetectionImage(DetectionImage detectionImage);

	/**
	 * 查询检测单图片信息
	 * @param detectionImage
	 * @return
	 */
	public List<DetectionImage> selectDetectionImageList(DetectionImage detectionImage);
}
